package cn.gson.boot.model.pojos;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Objects;

/*投诉*/

@Entity
public class Tousu {
    private int tsId;//投诉id
    private String tousuJiedairen;//首问接待人员工
    private String tsFenglei;//投诉分类
    private String tsMiaosu;//投诉描述
    private Timestamp tsRiqi;//投诉日期
    private String tsRen;//投诉人
    private String tsJinjichendu;//投诉紧急程度
    private String tsChulijieguo;//投诉处理结果
    private String tsBeizhu;//投诉备注
    private Kehu kH;//客户对象（客户id）

    private Integer tsYs;

    @Basic
    @Column(name = "ts_ys")
    public Integer getTsYs() {
        return tsYs;
    }

    public void setTsYs(Integer tsYs) {
        this.tsYs = tsYs;
    }

    @Id
    @Column(name = "ts_id", nullable = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY,generator = "seq")
    public int getTsId() {
        return tsId;
    }

    public void setTsId(int tsId) {
        this.tsId = tsId;
    }


    @Basic
    @Column(name = "tousu_jiedairen", nullable = true, length = 200)
    public String getTousuJiedairen() {
        return tousuJiedairen;
    }

    public void setTousuJiedairen(String tousuJiedairen) {
        this.tousuJiedairen = tousuJiedairen;
    }

    @Basic
    @Column(name = "ts_fenglei", nullable = true, length = 200)
    public String getTsFenglei() {
        return tsFenglei;
    }

    public void setTsFenglei(String tsFenglei) {
        this.tsFenglei = tsFenglei;
    }

    @Basic
    @Column(name = "ts_miaosu", nullable = true, length = 200)
    public String getTsMiaosu() {
        return tsMiaosu;
    }

    public void setTsMiaosu(String tsMiaosu) {
        this.tsMiaosu = tsMiaosu;
    }

    @Basic
    @Column(name = "ts_riqi", nullable = false)
    public Timestamp getTsRiqi() {
        return tsRiqi;
    }

    public void setTsRiqi(Timestamp tsRiqi) {
        this.tsRiqi = tsRiqi;
    }

    @Basic
    @Column(name = "ts_ren", nullable = true, length = 200)
    public String getTsRen() {
        return tsRen;
    }

    public void setTsRen(String tsRen) {
        this.tsRen = tsRen;
    }

    @Basic
    @Column(name = "ts_jinjichendu", nullable = true, length = 200)
    public String getTsJinjichendu() {
        return tsJinjichendu;
    }

    public void setTsJinjichendu(String tsJinjichendu) {
        this.tsJinjichendu = tsJinjichendu;
    }

    @Basic
    @Column(name = "ts_chulijieguo", nullable = true, length = 200)
    public String getTsChulijieguo() {
        return tsChulijieguo;
    }

    public void setTsChulijieguo(String tsChulijieguo) {
        this.tsChulijieguo = tsChulijieguo;
    }

    @Basic
    @Column(name = "ts_beizhu", nullable = true, length = 200)
    public String getTsBeizhu() {
        return tsBeizhu;
    }

    public void setTsBeizhu(String tsBeizhu) {
        this.tsBeizhu = tsBeizhu;
    }

    @ManyToOne
    @JoinColumn(name = "k_id", referencedColumnName = "k_id")
    public Kehu getkH() {
        return kH;
    }

    public void setkH(Kehu kH) {
        this.kH = kH;
    }
}
